home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacFormat 1995 January
/
macformat-020.iso
/
Shareware City
/
Developers
/
mega src
/
Source
/
yesno.π.rsrc
/
yesno.π.rsrc.rsrc
/
TEXT_16000_man general.txt
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1994-08-17
|
539 b
|
29 lines
yesno - ask a yes or no question
SYNOPSIS
yesno [-i] [string...]
DESCRIPTION
This command prompts the user for a “y” or “n” response. The string parameters are concatenated and may not exceed a total of 255 characters. If the -i option is used the prompt is read from standard input.
OPTIONS
-i Read the prompt from standard input
RETURN CODES
<0 Error
0 The user selected “y” or “Y”
1 The user selected “n” or “N”
EXAMPLES
% yesno
(y/n): y
%
% yesno “Is this right”
Is this right (y/n): y
%